package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import lombok.Data;

/**
 * @TableName t_user
 */
@TableName(value = "t_user")
@Data
public class Users implements Serializable {
    /**
     * #编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 前段旧密码
     */
    @TableField(select = false, exist = false)
    private String oldPassword;

    /**
     * 前段输入的新密码
     */
    @TableField(select = false, exist = false)
    private String newPassword;

    /**
     * 头像信息
     */
    @TableField(value = "avatar")
    private String avatar;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}